<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane :label="item.attrGroupName" :name="item.attrGroupName" v-for="(item,index) of specificationsForm"
        :key='index'>
        <el-form v-for="(row,rowIndex) of item.productAttrDoList" :key='rowIndex' ref="form" label-width="120px">
          <el-form-item :label="row.attrName">
            <el-row :getter='20'>
              <el-col :span="11">
                <el-input v-model="row.value" size="mini"></el-input>
              </el-col>
              <el-col :span="12" style="margin-left: 1%;">
                <el-radio-group v-model="row.isQuickShow">
                    <el-radio :label="true">快速展示</el-radio>
                    <el-radio :label="false">不快速展示</el-radio>
                  </el-radio-group>
              </el-col>
            </el-row>
          </el-form-item>
        </el-form>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
  export default {
    name: 'SetSpecification',
    props: {
      specificationsForm: null
    },
    data() {
      return {
        activeName: this.specificationsForm[0].attrGroupName
      };
    },
    methods: {

      // 获取规格输入的对应值
      returnSpecificationsForm(){
        return this.specificationsForm
      },
    }
  }
</script>

<style scoped>
</style>
